//文章列表
const defaultState = {
  pageSize: 10,
  currentPage: 1,
  total: 0,
  list: [],
};
export default (state = defaultState, action) => {
  switch (action.type) {
    case "GET_LIST":
      return {
        ...state,
        list: action.value,   // 直接赋值为数组
        total: action.value.length, // 可选：用数组长度作为 total
      };
    default:
      return state;
  }
};
